package net.lab1024.sa.admin.module.business.orders.dao;

import java.util.List;
import net.lab1024.sa.admin.module.business.orders.domain.entity.RetailOrdersEntity;
import net.lab1024.sa.admin.module.business.orders.domain.form.RetailOrdersQueryForm;
import net.lab1024.sa.admin.module.business.orders.domain.vo.RetailOrdersVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

/**
 * 零售订单 Dao
 *
 * @Author 谭智得
 * @Date 2025-03-19 09:46:50
 * @Copyright 谭智得
 */

@Mapper
@Component
public interface RetailOrdersDao extends BaseMapper<RetailOrdersEntity> {

    /**
     * 分页 查询
     *
     * @param page
     * @param queryForm
     * @return
     */
    List<RetailOrdersVO> queryPage(Page page, @Param("queryForm") RetailOrdersQueryForm queryForm);

    /**
     * 更新删除状态
     */
    long updateDeleted(@Param("retailId")Integer retailId,@Param("deletedFlag")boolean deletedFlag);
    /**
     * 批量更新删除状态
     */
    void batchUpdateDeleted(@Param("idList")List<Integer> idList,@Param("deletedFlag")boolean deletedFlag);

}
